<?php
include("FusionCharts.php");
$ratio8 = $_GET['r8']; 
$ratio7 = $_GET['r7']; 
$ratio6 = $_GET['r6']; 
$ratio5 = $_GET['r5']; 
$ratio4 = $_GET['r4']; 
$strXML = "<chart palette='4' animation='1' placeValuesInside='1' canvasPadding='20' showYAxisValues='1' numDivLines='0' maxColWidth='48' baseFontColor='000000' baseFontSize ='10' rotateValues='0' use3DLighting='1' canvasLeftMargin='0' chartLeftMargin='80' chartRightMargin='0' chartTopMargin='17' canvasBottomMargin='0' yAxisName='Ratios' chartBottomMargin='34' showValues='1' yAxisMaxValue='2.00' forceDecimals='1' yAxisMinValue='0.00' yAxisValueDecimals='2'  decimals='2'>";	
$strXML .= "<set label='" . '2004' . "' value='" . $ratio4 . "' color='60598F' />";              
$strXML .= "<set label='" . '2005' . "' value='" . $ratio5 . "' color='60598F' />";              
$strXML .= "<set label='" . '2006' . "' value='" . $ratio6 . "' color='60598F' />";              
$strXML .= "<set label='" . '2007' . "' value='" . $ratio7 . "' color='60598F' />";              
$strXML .= "<set label='" . '2008' . "' value='" . $ratio8 . "' color='60598F' />";              
$strXML .= "<trendlines>";
$strXML .= "<line startvalue='1.00' color='000000' thickness='1' isTrendZone='0' valueOnRight='1' displayValue='National Average' toolText='National Average: 1' />";
$strXML .= "</trendlines>";
$strXML .= "</chart>";	
$random = rand(0,time());
echo renderChart("images/Column3D.swf?nocache=' . $random . '", "", $strXML, "cRatios", 688, 200, false, false);
?>